<layout name="Layout/main" />
<div class=" panel-default">
	<div class="panel-heading">
		<span><a href="{:U('Blog/add')}" class="btn btn-success">创建Blog</a></span>
	</div>

	<!-- Table -->
	<table class="table  panel-body">

		<tr>
			<th>ID</th>
			<th>Blog名称</th>
			<th>作者</th>
			<th>Views</th>
			<th>发布时间</th>
			<th>审核</th>
			<th>操作</th>
		</tr>
		<empty name='list'>
		<tr>
			<td colspan='4'>暂无数据</td>

		</tr>
		<else /> <volist name="list" id='vo'>
		<tr>
			<td><strong>{$i}</strong></td>
			<td>{$vo.title}</td>
			<td>{$vo.author}</td>
			<td>{$vo.click}</td>
			<td >{$vo.add_time|date="Y.m.d H:i",###}</td>
			<td><if condition=" $vo['status'] eq 1">
				<span class="glyphicon glyphicon-ok text-success"></span>
				<else />
				<span class=' text-danger glyphicon glyphicon-remove
			'></span></if></td>
			<td><a class='btn  btn-xs btn-primary'
				href="{:U('rbc/setrole',array('id'=>$vo['id']))}" title="审核Blog "><span
					class="glyphicon glyphicon-wrench"></span> 审核</a> <a
				class='btn  btn-xs btn-danger'
				href="{:U('rbc/delrole',array('id'=>$vo['id']))}" title="删除blog"><span
					class="glyphicon glyphicon-remove-sign "></span> 刪除</a> <a
				class='btn  btn-xs btn-info'
				href="{:U('rbc/editrole',array('id'=>$vo['id']))}" title="编辑Blog "><span
					class="glyphicon glyphicon-edit "></span> 编辑</a> </td>
		</tr>
		</volist> </empty>
	</table>
</div>